<?php
if(!defined('VENDOR_PATH')){
    die('依赖包路径“VENDOR_PATH”未定义');
}

$venderDir = VENDOR_PATH;

$composerLoader = require $venderDir . '/autoload.php';
require $venderDir . '/yiisoft/yii2/Yii.php';
require __DIR__ . '/Heihei.php';
Heihei::$classLoader = $composerLoader;

$composerLoader->setPsr4('heihei\\',array(__DIR__));
$composerLoader->setPsr4('heihei\\libs\\',array(dirname(__DIR__) . '/heihei-libs'));